/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hu
 * Date: 2024-04-25
 * Time: 23:31
 */
public class Test {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 0; i < 100; i++) {
            if(i % 10 == 9){
                count++;
                System.out.println(i);
            } if(i / 10 ==9){
                count++;
                System.out.println(i);
            }
        }
        System.out.println(count);
    }
}
